package com.example.dao;

import com.example.entity.LoginEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface LoginDao {
    void addUser(LoginEntity entity);
    LoginEntity queryByName(String  name);
    void deleteUser(LoginEntity entity);
    LoginEntity getUserById(Long id);
    String getUserNameById(@Param("id")Long id, @Param("fieldname")String fie);
}
